Non-record: Negative results — hardware alignment & quantization on 8xH100#670
Open
abaybektursun wants to merge 1 commit intoopenai:mainfrom
Open
Non-record: Negative results — hardware alignment & quantization on 8xH100#670abaybektursun wants to merge 1 commit intoopenai:mainfrom
abaybektursun wants to merge 1 commit intoopenai:mainfrom
Conversation
…xH100 30+ experiments on the PR openai#593 stack (1.1171 BPB), all negative or marginal: - CUTLASS SM90 GEMM: 2.5x slower than cuBLAS - Fused Triton GEMM+activation: autograd.Function kills backward - FP8, QKV fusion, custom CUDA: all slower or no improvement - SpinQuant, mixed int5/int8, Soft-Round QAT: noise-level - XSA-all, VRL, Gated Attention, bigger model, shard ordering: all worse - 22 legal TTT experiments: all worse than non-TTT baseline Key finding: 82ms step is 95%+ optimized. torch.compile handles all fusion. Competition at d=512 is bits-per-parameter, not FLOPS-per-second. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Key finding
The 82ms training step is 95%+ optimized. torch.compile (PyTorch 2.9.1) handles all fusion automatically. cuBLAS is at the hardware limit for K=512. The competition at d=512 on H100 is won by quantization quality (bits-per-parameter), not kernel engineering (FLOPS-per-second).
Kernel-Level Optimization (All Dead)
Conclusion: torch.compile (PyTorch 2.9.1) already fuses CE+softcap+tanh, LeakyReLU²+residual, RMSNorm+backward, and all pointwise chains. cuBLAS is at the hardware limit for K=512 (~48% roofline, pipeline depth limitation). The 82ms step is 95%+ optimized.
torch.compile Gotchas
Quantization Experiments (Diminishing Returns)
Architecture & Training (All Negative)
Meta-Lessons
Test plan
🤖 Generated with Claude Code